package day01_07.day02;

/**
 * 倒置字符串
 * https://www.nowcoder.com/practice/ee5de2e7c45a46a090c1ced2fdc62355?tpId=85&&tqId=29867&rp=1&ru=/activity/oj&qru=/ta/2017test/question-ranking
 */

import java.util.Scanner;

public class Main02 {
    public static void main(String[] args){
        Scanner scn = new Scanner(System.in);
        String str = scn.nextLine();
        String[] strArr = str.split(" ");
        for (int i = strArr.length - 1 ; i >= 0 ; i--){
            System.out.print(strArr[i] + " ");
        }
    }
}
/**
 * 字符串用split方法按空格分解输出
 */
